﻿<%@ Page Title="Домашняя страница" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="viewmodmsgs.aspx.cs" Inherits="_Default" %>
    
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
            view/edit messages:
    </h2>
    <h2>
            Filter&nbsp; <asp:textbox   id="id_user"  runat="server" />
       <asp:RequiredFieldValidator
        id="RequiredFieldValidator1"
        runat="server"
        ControlToValidate="id_user"
        Display="Static"
        ErrorMessage="Please enter filter properties" />


            <asp:button   id="Button1"  runat="server"   text="Set filter" onclick="Button1_Click"   
                 />


   
    </h2>

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="id_users" DataSourceID="SqlDataSource1" AllowPaging="True" 
        AllowSorting="True" Width="891px">
    <Columns>
        <asp:CommandField ShowSelectButton="True" />
        <asp:BoundField DataField="id_users" HeaderText="USERID" ReadOnly="True" 
            SortExpression="id_users" />
        <asp:BoundField DataField="nick" HeaderText="Nickname" SortExpression="nick" />
        <asp:BoundField DataField="name" HeaderText="First name" SortExpression="name" />
        <asp:BoundField DataField="lastname" HeaderText="Last Name" 
            SortExpression="lastname" />
        <asp:BoundField DataField="middlename" HeaderText="Middle Name" 
            SortExpression="middlename" />
        <asp:BoundField DataField="id_status" HeaderText="Status" 
            SortExpression="id_status" />
    </Columns>
</asp:GridView>
    
            
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SevTwitterConnectionString %>" 
        SelectCommand="SELECT * FROM [Users]"></asp:SqlDataSource>
    
            
            <asp:button   id="Button2"  runat="server"   text="Ok" 
    onclick="Button2_Click"    />
            <br />
    


   
      <div class="footer">
        
        
    </div>
</asp:Content>
